package by.apiskun.curex.dataaccess;

import java.util.Date;
import java.util.List;

import by.apiskun.curex.datamodel.ChangeRate;

public interface ChangeRateDAO extends AbstractDAO<Long, ChangeRate> {

	Long getCount();

	List<ChangeRate> getAllChangeRates();

	void updateChangeRateCourse(Long id, Double newCourse);

	void updateChangeRateEndDate(Long id, Date newEndDate);

	List<ChangeRate> getAllChangeRatesByBeforeName(String beforeName);

	List<ChangeRate> getAllChangeRatesByAfterName(String afterName);

	List<ChangeRate> getAllChangeRatesForDay(Date date);
}
